package com.time.company.webserver.listener;

import com.yanzhenjie.nohttp.rest.Response;

/**
 * 统一封装NoHttp的接口访问返回数据成功和失败
 * Created by Bing on 2016/8/23.
 * E-mail is tx16bing@163.com
 */
public interface ResponseCallback<T> {

    /**
     * 成功回调
     */
     void onSucceed(int what, Response<T> response);

    /**
     * 失败回调
     */
     void onFailed(int what, Object tag, Exception exception, long networkMillis);

}
